<?php /* Smarty version Smarty-3.1.11, created on 2012-10-08 12:05:20
         compiled from "_templates\banlist\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:47985072a5602423c1-94474765%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'da7c085c04bae36498a067a3145004a354b087d5' => 
    array (
      0 => '_templates\\banlist\\index.tpl',
      1 => 1349677401,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '47985072a5602423c1-94474765',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'value' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5072a5603d8ac3_52938767',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5072a5603d8ac3_52938767')) {function content_5072a5603d8ac3_52938767($_smarty_tpl) {?><article class="module width_full">
    <header><h3><?php echo $_smarty_tpl->getConfigVariable('banlist');?>
</h3></header>
<div id="tablewrapper">
						<div id="tableheader">
							<div class="search">
								<select id="columns" onchange="sorter.search('query')">
						  <option value="-1"><?php echo $_smarty_tpl->getConfigVariable('columns');?>
</option>
						  </select>
								<input type="text" id="query" onkeyup="sorter.search('query')" />
							</div>
						<span class="details">
						  <div><?php echo $_smarty_tpl->getConfigVariable('entries');?>
 <span id="startrecord"></span>-<span id="endrecord"></span> <?php echo $_smarty_tpl->getConfigVariable('from');?>
 <span id="totalrecords"></span></div>
						  <div><a href="javascript:sorter.reset()"><?php echo $_smarty_tpl->getConfigVariable('reset');?>
</a></div>
						</span>
					  </div>
					<table cellpadding="0" cellspacing="0" id="table" class="tinytable" style="width:100%;" >
						<thead>
							<tr>
								<th><h3><?php echo $_smarty_tpl->getConfigVariable('title');?>
</h3></th>
								<th><h3><?php echo $_smarty_tpl->getConfigVariable('date');?>
</h3></th>
								<th><h3><?php echo $_smarty_tpl->getConfigVariable('reason');?>
</h3></th>
								<th><h3><?php echo $_smarty_tpl->getConfigVariable('action');?>
</h3></th>
							</tr>
						</thead>
						<tbody>
			<?php if (!empty($_smarty_tpl->tpl_vars['value']->value)){?>
        <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['value']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
			<tr>
				<td class="body"><?php echo $_smarty_tpl->tpl_vars['item']->value['username'];?>
</td>
				<td class="body"><?php echo $_smarty_tpl->tpl_vars['item']->value['timestamp'];?>
</td>
				<td class="body"><?php echo nl2br($_smarty_tpl->tpl_vars['item']->value['reason']);?>
</td>
				<td class="body"><a href="index.php?mod=banlist&amp;action=unban&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
&userID=<?php echo $_smarty_tpl->tpl_vars['item']->value['userID'];?>
"><input style="float:right;" type="button" class="alt_btn" value="<?php echo $_smarty_tpl->getConfigVariable('unban');?>
" /></a>
</td>
			</tr>
        <?php } ?>
		<?php }else{ ?>
			<tr>
				<td><?php echo $_smarty_tpl->getConfigVariable('noban');?>
</td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
		<?php }?>
					   </tbody>
					</table>
					  <div id="tablefooter">
						<div id="tablenav">
						  <div>
							<!--<img src="_images/icons/arrow_left.png" alt="First Page" onclick="sorter.move(-1,true)" />&laquo;-->
							<img src="_images/icons/arrow_left.png" alt="First Page" onclick="sorter.move(-1)" />
							<img src="_images/icons/arrow_right.png" alt="First Page" onclick="sorter.move(1)" />
							<!--<img src="_images/icons/arrow_right.png" alt="Last Page" onclick="sorter.move(1,true)" />&raquo;-->
						  </div>
						  <div>
							<select id="pagedropdown"></select>
						  </div>
						  <div class="page">
							<a href="javascript:sorter.showall()"><?php echo $_smarty_tpl->getConfigVariable('see_all');?>
</a>
						  </div>
						</div>
						<div id="tablelocation">
						  <div>
							<select onchange="sorter.size(this.value)">
							  <option value="5">5</option>
							  <option value="10" selected="selected">10</option>
							  <option value="20">20</option>
							  <option value="50">50</option>
							  <option value="100">100</option>
							</select>
							<span><?php echo $_smarty_tpl->getConfigVariable('entries_p_site');?>
</span>
						  </div>
						  <div class="page"><?php echo $_smarty_tpl->getConfigVariable('site');?>
 <span id="currentpage"></span> <?php echo $_smarty_tpl->getConfigVariable('from');?>
 <span id="totalpages"></span></div>
							</div>
						</div>
					</div>
    <footer style="overflow:hidden;">
        <div class="submit_link">
		<a href="index.php?mod=banlist&amp;page=add"><input style="float:right;" type="button" class="alt_btn" value="<?php echo $_smarty_tpl->getConfigVariable('add');?>
" /></a>
        </div>
    </footer>
</article>
<!-- Addet -->
<div class="modal" id="banlist">
        <h3><?php echo $_smarty_tpl->getConfigVariable('deleted');?>
</h3>
	<p><?php echo $_smarty_tpl->getConfigVariable('success_deleted');?>
</p>
</div>

<script>



    var sorter = new TINY.table.sorter('sorter','table',{
      headclass:'head',
      ascclass:'asc',
      descclass:'desc',
      evenclass:'evenrow',
      oddclass:'oddrow',
      evenselclass:'evenselected',
      oddselclass:'oddselected',
      paginate:true,
      size:10,
      colddid:'columns',
      currentid:'currentpage',
      totalid:'totalpages',
      startingrecid:'startrecord',
      endingrecid:'endrecord',
      totalrecid:'totalrecords',
      hoverid:'selectedrow',
      pageddid:'pagedropdown',
      navid:'tablenav',
      sortdir:1,
      init:true
    });
    </script>
    <?php }} ?>